package com.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.utils.PageUtils;
import com.mall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author xzt
 * @email xzt@163.com
 * @date 2024-08-10 15:54:08
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listTree();

    List<Long> getCatelogPath(Long catelogId);

    void updateCategoryRelation(CategoryEntity category);

    List<CategoryEntity> getFirstLevel();
}

